package com.njtoyo.taxi.admin.rest.export.coverter;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverWithdrawState;

public class DriverWithdrawStateConverter implements Converter<DriverWithdrawState> {
    @Override
    public WriteCellData<String> convertToExcelData(DriverWithdrawState value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
        return new WriteCellData<>(value.getDesc());
    }
}
